<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>以字符串格式导出证书</title>
 </head>
 <body class="docs"><div id="layout">
  <div id="layout-content"><div id="function.openssl-x509-export" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">openssl_x509_export</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.2.0, PHP 5, PHP 7)</p><p class="refpurpose"><span class="refname">openssl_x509_export</span> &mdash; <span class="dc-title">以字符串格式导出证书</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-function.openssl-x509-export-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>openssl_x509_export</strong></span>
    ( <span class="methodparam"><span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span> <code class="parameter">$x509</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter reference">&$output</code></span>
   [, <span class="methodparam"><span class="type">bool</span> <code class="parameter">$notext</code><span class="initializer"> = <strong><code>TRUE</code></strong></span></span>
  ] ) : <span class="type">bool</span></div>

  <p class="para rdfs-comment">
   <span class="function"><strong>openssl_x509_export()</strong></span> 将 <code class="parameter">x509</code> 以PEM编码的格式导出到名为 <code class="parameter">output</code> 的字符串类型的变量中。
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.openssl-x509-export-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
<dt>
<code class="parameter">x509</code></dt>

<dd>

 <p class="para">
  参见<a href="openssl.certparams.html" class="link">密钥／证书参数</a>以获取有效值列表。
 </p>
</dd>


    
     <dt>
<code class="parameter">output</code></dt>

     <dd>

      <p class="para">
       成功，将会存储 PEM.
      </p>
     </dd>

    
    
     <dt>
<code class="parameter">notext</code></dt>

     <dd>

      <p class="para">
可选参数 <code class="parameter">notext</code> 影响输出的冗余度。如果设为
<strong><code>FALSE</code></strong>，输出内容将包含附加的人类可读信息。<code class="parameter">notext</code> 的缺省值为 <strong><code>TRUE</code></strong>。
</p>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.openssl-x509-export-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   成功时返回 <strong><code>TRUE</code></strong>， 或者在失败时返回 <strong><code>FALSE</code></strong>。
  </p>
 </div>


</div></div></div></body></html>